package com.gc.server.enums;

import lombok.Getter;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Jul 07 16:46:34 CST 2020
 */
@Getter
public enum BannerSiteEnum {


                   TOP(0,"顶部")
                                    ,
                
            
                   LEFT(1,"左边")
                                    ,
                
            
                   RIGHT(2,"右边")
                                    ,
                
            
                   BOTTOM(3,"底部")
                
                                ;
            
        
        int index;
        String value;

    BannerSiteEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return BannerSiteEnum.values()[idx].getValue();
    }

}
